package com.tanhua.sso;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @program: my-tanhua
 * @description: 每个启动类在启动时默认会扫描com.tanhua.sso这个包和子包
 * @author: xuejingjing
 * @create: 2021-09-12 15:10
 **/

@SpringBootApplication
@MapperScan("com.tanhua.common.mapper") //设置mapper接口的扫描包
@ComponentScan(basePackages ="com.tanhua") //修改默认的扫描包范围
public class MyApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class,args);
    }
}